<table border="0" cellspacing="1px" cellpadding="10px "align="center" width="100%">
	<tr>
  	<td align="left"><strong>Total:</strong>&nbsp;<{$TOTAL}></td>
    <td align="right"><{$NAVIGATION_PAGE}></td>
  </tr>
</table>
<table border="1" cellspacing="1px" cellpadding="10px "align="center" width="100%">
    <tr>
        <th width="20">#</th>
        <th nowrap>Title</th>
        <th width="150">Start date</th>
        <th width="150">End date</th>
        <th width="150">Created date</th>
        <th width="60">Status</th>        
        <th width="60" colspan="2">Action</th>
    </tr>
    <{assign var='keyList' value='0'}>
    <{while $objListEvents->fetch()}>
    <{assign var='keyList' value=$keyList+1}>
    <tr>
        <td><{$intStart+$keyList}></td>
        <td> <{$objListEvents->event_title}> </td>
        <td> <{$objListEvents->event_startdate}> </td>
        <td> <{$objListEvents->event_enddate}> </td>
        <td> <{$objListEvents->event_createddate}> </td>
        <td> <{if $objListEvents->event_status eq 1}>Yes<{else}>No<{/if}> </td>         
        <td align="center"> 
        	<a href="<{$smarty.const.APPLICATION_URL}>admin/event/add/<{$objListEvents->event_id}>" title="Edit" class="link_edit" />
        </td>
        <td align="center"> 
          <a href="<{$smarty.const.APPLICATION_URL}>admin/event/del/<{$objListEvents->event_id}>" title="Delete" class="link_delete" />
        </td>
    </tr>
    <{/while}>
</table>
<div style="text-align:left; margin:10px 0px;"> 
	<a class="btn_add" style="padding:5px 15px;" href="<{$smarty.const.APPLICATION_URL}>admin/event/add">Add News</a>
</div>
<script type="text/javascript">	
	
	function onPage(p_intPage, attach)
	{
		window.location.href = application_url + "admin/event/index/" + p_intPage;
	}
</script>